﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Cinema_Ticketing_System.Models
{
    public class Unreleased_Film
    {
        CinemaDBEntities2 cdb = new CinemaDBEntities2();
        public List<film_table> GetUnreleasedFilm(int fid)
        {
            List<film_table> listFilm = cdb.film_table.Where(x => x.release_status == 0).ToList();
            if (fid != -88)
            {
                listFilm = listFilm.Where(x => x.filmid == fid).ToList();
            }
            return listFilm;

        }
    }
}